<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>srtdash</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" type="image/png" th:href="@{/assets/images/icon/favicon.ico}">
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap.mincopy.css}">
    <link rel="stylesheet" th:href="@{/assets/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/themify-icons.css}">
    <link rel="stylesheet" th:href="@{/assets/css/metisMenu.css}">
    <link rel="stylesheet" th:href="@{/assets/css/owl.carousel.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/slicknav.min.css}">
    <!-- amchart css -->
    <link rel="stylesheet" th:href="@{/assets/css/export.css}" type="text/css" media="all"/>
    <!-- others css -->
    <link rel="stylesheet" th:href="@{/assets/css/typography.css}">
    <link rel="stylesheet" th:href="@{/assets/css/default-css.css}">
    <link rel="stylesheet" th:href="@{/assets/css/styles.css}">
    <link rel="stylesheet" th:href="@{/assets/css/responsive.css}">
    <!-- modernizr css -->
    <script th:src="@{assets/js/vendor/modernizr-2.8.3.min.js}"></script>

</head>

<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
    your browser</a> to improve your experience.</p>
<![endif]-->
<!-- preloader area start -->
<div id="preloader">
    <div class="loader"></div>
</div>
<!-- preloader area end -->
<!-- page container area start -->
<form id="form" action="/admin/Good" method="post">
    <div class="page-container">
        <!-- sidebar menu area start -->
        <div class="sidebar-menu">
            <div class="sidebar-header">
                <div class="logo">
                    <a th:href="@{/pornhub/all/1}"><img th:src="@{/assets/images/icon/happyhublogo.png}" alt="logo"></a>
                </div>
            </div>
            <div class="main-menu">
                <div class="menu-inner" style="width: 100%; height: 500px; overflow: hidden;">
                    <nav>
                        <ul class="metismenu" id="menu">
                            <li class="active">
                                <a href="javascript:void(0)" aria-expanded="true"><i
                                        class="ti-dashboard"></i><span>商品管理</span></a>
                                <ul class="collapse">
                                    <li class="active"><a th:href="@{/admin/good}">全部商品</a></li>
                                    <li th:each="indexNav:${indexNavList}">
                                        <a th:id="${indexNav.getType()}" href="#"
                                           onclick='searchType(this)'>
                                            <span th:text="${indexNav.getType()}"></span>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <li>
                                <a href="javascript:void(0)" aria-expanded="true"><i
                                        class="ti-layout-sidebar-left"></i><span>导航栏管理</span></a>
                                <ul class="collapse">
                                    <li><a th:href="@{/admin/showtype}">分类管理</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="javascript:void(0)" aria-expanded="true"><i
                                        class="fa fa-table"></i><span>用户管理</span></a>
                                <ul class="collapse">
                                    <li><a th:href="@{/admin/account}">用户信息</a></li>
                                </ul>
                                <ul class="collapse">
                                    <li><a th:href="@{/admin/Order}">订单管理</a></li>
                                </ul>
                            </li>
                            <li>
                                <a href="javascript:void(0)" aria-expanded="true"><i
                                        class="fa fa-table"></i><span>管理员信息</span></a>
                                <ul class="collapse">
                                    <li><a th:href="@{/adminManger/showAdmin}">管理员账号</a></li>
                                </ul>
                            </li>
                            <li><a th:href="@{/admin/logout}"><i class="ti-map-alt"></i> <span>退出登录</span></a></li>
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
        <div class="main-content">
            <!-- header area start -->
            <div class="header-area">
                <div class="row align-items-center">
                    <!-- nav and search button -->
                    <div class="col-md-6 col-sm-8 clearfix">
                        <div class="nav-btn pull-left">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                    </div>
                </div>
            </div>
            <!-- header area end -->
            <!-- page title area start -->
            <div class="page-title-area">
                <div class="row align-items-center">
                    <div class="col-sm-6">
                        <div class="breadcrumbs-area clearfix">
                            <h4 class="page-title pull-left">欢迎来到快乐星球</h4>
                            <ul class="breadcrumbs pull-left">
                                <li><a th:href="@{/admin/good}">主页</a></li>
                                <li><a>管理员账号</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="col-sm-6 clearfix">
                        <div class="user-profile pull-right">
                            <img class="avatar user-thumb" th:src="@{/assets/images/logowixin.jpg}" alt="avatar">
                            <h4 class="user-name dropdown-toggle" data-toggle="dropdown" th:text="${username}"></h4>
                        </div>
                    </div>
                </div>
            </div>
            <!-- page title area end -->
            </br>
            <input id="pageNum" type="hidden" name="pageNum" th:value="${pageNum}">
            <input id="totalPages" type="hidden" name="totalPages" th:value="${totalPages}">
            <input id="keyword" type="hidden" name="keyword" th:value="${keyword}">
            <input id="type" type="hidden" name="type" th:value="${type}">
            <input id="status" type="hidden" name="status" th:value="${status}">
            <input id="sort" type="hidden" name="sort" th:value="${sort}">
            <div class="main-content-inner">
                <div class="table-responsive">
                    <div class="table-responsive">
                        <table class="dbkit-table">
                            <tbody>
                            <tr align="center">
                                <td><h4>用户名</h4></td>
                                <td><h4>密码</h4></td>
                                <td><h4>邮箱</h4></td>
                                <td><h4>权限</h4></td>
                                <td><h4><div class="pagination_area pull-right ">
                                    <ul>
                                        <li><a  th:href="@{/adminManger/toInsertAdmin}">新增</a></li>
                                    </ul>
                                </div></h4></td>
                            </tr>
                            <tr th:each="admin:${adminList}" align="center">
                                <td><input type="text" th:id="'username'+${admin.getId()}"
                                           name="username"  th:value="${admin.getUsername()}" disabled="disabled"></td>
                                <td><input type="text" th:id="'password'+${admin.getId()}"
                                           name="password" th:value="${admin.getPassword()}" disabled="disabled"></td>
                                <td><input type="text" th:id="'email'+${admin.getId()}"
                                           name="email" th:value="${admin.getEmail()}" disabled="disabled"></td>
                                <td><input type="text" th:id="'role'+${admin.getId()}"
                                           name="role" th:value="${admin.getRole()}" disabled="disabled"></td>
                                <td>
                                    <div class="pagination_area pull-right ">
                                        <ul>
                                            <li><a th:id="${admin.getId()}" href="#" onclick='toUpdateAdmin(this)'>修改</a>
                                            </li>
                                            <li><a th:id="'delete'+${admin.getId()}"  href="#" onclick='deleteAdmin(this)'>删除</a></li>
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
        </div>
        <footer>
            <div class="footer-area">
                <p>Copyright &copy; 2020.版权所有-陈耀炜.</p>
            </div>
        </footer>
        <!-- footer area end-->
    </div>
</form>
<script th:src="@{/assets/js/vendor/jquery-2.2.4.min.js}"></script>
<!-- bootstrap 4 js -->
<script th:src="@{/assets/js/popper.min.js}"></script>
<script th:src="@{/assets/js/bootstrap.min.js}"></script>
<script th:src="@{/assets/js/owl.carousel.min.js}"></script>
<script th:src="@{/assets/js/metisMenu.min.js}"></script>
<script th:src="@{/assets/js/jquery.slimscroll.min.js}"></script>
<script th:src="@{/assets/js/jquery.slicknav.min.js}"></script>

<!-- start chart js -->
<script th:src="@{/assets/js/Chart.min.js}"></script>
<!-- start highcharts js -->
<script th:src="@{/assets/js/highcharts.js}"></script>
<!-- start zingchart js -->
<script th:src="@{/assets/js/zingchart.min.js}"></script>
<script>
    zingchart.MODULESDIR = "assets/js/modules/";
    ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];
</script>
<!-- all line chart activation -->
<script th:src="@{/assets/js/line-chart.js}"></script>
<!-- all pie chart -->
<script th:src="@{/assets/js/pie-chart.js}"></script>
<!-- others plugins -->
<script th:src="@{/assets/js/plugins.js}"></script>
<script th:src="@{/assets/js/scripts.js}"></script>

<script th:src="@{/assets/search.js}"></script>
<script th:src="@{/assets/type.js}"></script>
<script th:src="@{/assets/admin.js}"></script>
</body>

</html>